home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / ccdl150e.zip / STDARG.H < prev    next >
C/C++ Source or Header  |  1997-03-08  |  395b  |  14 lines

  1. #ifndef __STDARG_H
  2. #define __STDARG_H
  3.  
  4. typedef void *va_list;
  5.  
  6. #define __sizeof__(x) ((sizeof(x)+sizeof(int)-1) & ~(sizeof(int)-1))
  7.  
  8. #define va_start(ap, parmN) ap = (va_list)((char *)(&parmN)+sizeof(parmN))
  9. #define va_arg(ap, type) (*(type *)(((*(char **)&(ap))+=__sizeof__(type))-(__sizeof__(type))))
  10. #define va_end(ap)
  11.  
  12. #define _va_ptr             (...)
  13.  
  14. #endif  /* __STDARG_H */